package cn.kgm.user.dto.dto;

import cn.kgm.user.dto.vo.UserTypeClientVO;
import cn.kgm.user.dto.vo.UserTypeDealerVO;
import cn.kgm.user.dto.vo.UserTypeSysVO;
import cn.kgm.user.dto.vo.UserVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;

/**
 * @author kappi
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel(value = "UserRegisterDTO", description = "用户注册实体类")
public class UserRegisterDTO extends UserVO {

    @ApiModelProperty(value = "toC客户VO")
    private UserTypeClientVO userTypeClient;

    @ApiModelProperty(value = "toB客户VO")
    private UserTypeSysVO userTypeSys;

    @ApiModelProperty(value = "公司客户")
    private UserTypeDealerVO userTypeDealer;

    @NotBlank(message = "权限类型不能为空")
    @ApiModelProperty(value = "权限类型:[SYS,系统用户];[CLIENT,app用户];[DEALER,公司客户]")
    private String loginType;

}
